home *** CD-ROM | disk | FTP | other *** search
- Path: news.cybercom.net!usenet
- From: kcoleman@cybercom.net (Kenneth Coleman)
- Newsgroups: comp.lang.c++
- Subject: STL vector copy ctor/assigment & reserve()
- Date: Tue, 12 Mar 1996 02:27:58 GMT
- Organization: Cyber Access Internet Services (617) 396-0491
- Message-ID: <4i2nbd$rt7@orion.cybercom.net>
- NNTP-Posting-Host: dial3-17.cybercom.net
- X-Newsreader: Forte Free Agent 1.0.82
-
- I don't know if this is on purpose or not, but neither the copy
- constructor nor the assignment operator appears to take into account
- the fact that the function reserve() may have been called on the copy
- source. It basically makes the size of the vector into the number of
- elements in the range [start, finish).
-
- Is this on purpose, or is it a bug? I can't find any mention of this
- particular "feature" in the documentation I have, or in the working
- paper.
-
- Thanks for any help you can give me!
-
- - Ken.
- kcoleman@cybercom.net
-
-
-